package cn.com.guage.dtm.metadata.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.com.guage.dtm.common.annotation.Excel;
import cn.com.guage.dtm.common.core.domain.BaseEntity;

/**
 * 字段MD定义对象 md_field
 * 
 * @author liujun
 * @date 2021-06-24
 */
public class MdField extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 字段信息Id */
    private Long fieldId;

    /** 字段代码 */
    @Excel(name = "字段代码")
    private String fieldCode;

    /** 字段名称 */
    @Excel(name = "字段名称")
    private String fieldName;

    /** 字段说明 */
    @Excel(name = "字段说明")
    private String fieldContent;

    /** 字段类型 */
    @Excel(name = "字段类型")
    private Long fieldType;

    /** 字段长度 */
    @Excel(name = "字段长度")
    private Long fieldLength;

    /** 字段精度 */
    @Excel(name = "字段精度")
    private Long fieldPrecision;

    /** 是否可空 */
    @Excel(name = "是否可空")
    private Long fieldCanNull;

    /** 字段默认值 */
    @Excel(name = "字段默认值")
    private String fieldDefault;

    /** 是否可为负数 */
    @Excel(name = "是否可为负数")
    private Long fieldCanNegative;

    /** 枚举值域 */
    @Excel(name = "枚举值域")
    private Long fieldEnumRange;

    /** 表id */
    @Excel(name = "表id")
    private Long tableId;

    /** 表代码 */
    @Excel(name = "表代码")
    private String tableCode;

    /** 表名称 */
    @Excel(name = "表名称")
    private String tableName;

    public void setFieldId(Long fieldId) 
    {
        this.fieldId = fieldId;
    }

    public Long getFieldId() 
    {
        return fieldId;
    }
    public void setFieldCode(String fieldCode) 
    {
        this.fieldCode = fieldCode;
    }

    public String getFieldCode() 
    {
        return fieldCode;
    }
    public void setFieldName(String fieldName) 
    {
        this.fieldName = fieldName;
    }

    public String getFieldName() 
    {
        return fieldName;
    }
    public void setFieldContent(String fieldContent) 
    {
        this.fieldContent = fieldContent;
    }

    public String getFieldContent() 
    {
        return fieldContent;
    }
    public void setFieldType(Long fieldType) 
    {
        this.fieldType = fieldType;
    }

    public Long getFieldType() 
    {
        return fieldType;
    }
    public void setFieldLength(Long fieldLength) 
    {
        this.fieldLength = fieldLength;
    }

    public Long getFieldLength() 
    {
        return fieldLength;
    }
    public void setFieldPrecision(Long fieldPrecision) 
    {
        this.fieldPrecision = fieldPrecision;
    }

    public Long getFieldPrecision() 
    {
        return fieldPrecision;
    }
    public void setFieldCanNull(Long fieldCanNull) 
    {
        this.fieldCanNull = fieldCanNull;
    }

    public Long getFieldCanNull() 
    {
        return fieldCanNull;
    }
    public void setFieldDefault(String fieldDefault) 
    {
        this.fieldDefault = fieldDefault;
    }

    public String getFieldDefault() 
    {
        return fieldDefault;
    }
    public void setFieldCanNegative(Long fieldCanNegative) 
    {
        this.fieldCanNegative = fieldCanNegative;
    }

    public Long getFieldCanNegative() 
    {
        return fieldCanNegative;
    }
    public void setFieldEnumRange(Long fieldEnumRange) 
    {
        this.fieldEnumRange = fieldEnumRange;
    }

    public Long getFieldEnumRange() 
    {
        return fieldEnumRange;
    }
    public void setTableId(Long tableId) 
    {
        this.tableId = tableId;
    }

    public Long getTableId() 
    {
        return tableId;
    }
    public void setTableCode(String tableCode) 
    {
        this.tableCode = tableCode;
    }

    public String getTableCode() 
    {
        return tableCode;
    }
    public void setTableName(String tableName) 
    {
        this.tableName = tableName;
    }

    public String getTableName() 
    {
        return tableName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fieldId", getFieldId())
            .append("fieldCode", getFieldCode())
            .append("fieldName", getFieldName())
            .append("fieldContent", getFieldContent())
            .append("fieldType", getFieldType())
            .append("fieldLength", getFieldLength())
            .append("fieldPrecision", getFieldPrecision())
            .append("fieldCanNull", getFieldCanNull())
            .append("fieldDefault", getFieldDefault())
            .append("fieldCanNegative", getFieldCanNegative())
            .append("fieldEnumRange", getFieldEnumRange())
            .append("tableId", getTableId())
            .append("tableCode", getTableCode())
            .append("tableName", getTableName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
